//
//  PlistIO.h
//  rrdSJ
//
//  Created by yangaichun on 16/3/17.
//  Copyright © 2016年 com.weiba66. All rights reserved.
//  plist文件读取类

#import <Foundation/Foundation.h>

@interface PlistIO : NSObject

//从MainBundle/Document读取plist
+(NSArray *)arrayFromMainBundlePlist:(NSString *)fileName;
+(NSArray *)ArrayFromDocumentPlist:(NSString *)fileName;

+(NSDictionary *)dictionaryFromMainBundlePlist:(NSString *)fileName;
+(NSDictionary *)dictionaryFromDocumentPlist:(NSString *)fileName;

//写plist到Document目录
+ (BOOL)writeArray:(NSArray *)array ToFile:(NSString *)fileName;
+ (BOOL)writeDictionary:(NSDictionary *)dictionary ToFile:(NSString *)fileName;

//删除Document目录下的plist文件
+ (void)deletFile:(NSString *)fileName;

@end
